<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!-- 用JSTL c:forEach循环遍历文章集合 -->
<c:forEach items="${articleList }" var="article">


	<article class="am-g blog-entry-article">
		<div class="am-u-lg-6 am-u-md-12 am-u-sm-12 blog-entry-img">
			<img src="${article.coverImg }" alt="" class="am-u-sm-12">
		</div>
		<div class="am-u-lg-6 am-u-md-12 am-u-sm-12 blog-entry-text">
			<span><a href="category.do?id=${article.categoryId }" class="blog-color">${article.categoryTitle }
					&nbsp;</a></span> <span> @${article.author } &nbsp;</span> <span>${article.createTime }</span>
			<h1>
				<a href="article.do?id=${article.id }">${article.title }</a>
			</h1>
			<p>${article.description }</p>
			<p>
				<a href="" class="blog-continue">continue reading</a>
			</p>
		</div>
	</article>


</c:forEach>

<ul class="am-pagination">
	<li class="am-pagination-prev"><a href="">&laquo; Prev</a></li>
	<li class="am-pagination-next"><a href="">Next &raquo;</a></li>
</ul>